﻿using static Modules.Person.PersonConstants;

namespace ManagementApi.Models.BigDataStatistics;

/// <summary>
/// 项目用工分析统计
/// </summary>
public class ProjectUseEmployeeStatisticsDto
{
    public int MenCount { get; set; }

    public int WomenCount { get; set; }

    public IEnumerable<ProjectUseEmployeeStatisticsDataDto> data { get; set; }

    public IEnumerable<ProjectUseEmployeeStatisticsWorkTypeDataDto> WorkTypeData { get; set; }
}

/// <summary>
/// 年龄分布
/// </summary>
public class ProjectUseEmployeeStatisticsDataDto
{
    public string Name { get; set; }
    public int MenCount { get; set; }
    public int Women { get; set; }
}

/// <summary>
/// 工种分析
/// </summary>
public class ProjectUseEmployeeStatisticsWorkTypeDataDto
{
    public 工人工种? WorkType { get; set; }

    public string WorkTypeName { get; set; }

    public int PersonCount { get; set; }
}